﻿using System;
using Sharp.DataTransferObject;
using Sharp.Portal;
using Sharp.Portal.AdminLTE;
using Sharp.Portal.Mvc.List;
using Sharp.Portal.Other;


namespace Sharp.WebBooter.Areas.Platform.Models
{
    /// <summary>
    /// 工作组管理
    /// </summary>
    [ModuleCode("GroupManage"), Title("工作组管理"), ModuleItem(typeof(GroupModel))]
    [DataHandler(ModuleOP.Details, "浏览", 0)]
    [DataHandler(ModuleOP.Create, "新增", 1)]
    [DataHandler(ModuleOP.Edit, "修改", 2)]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    [DataHandler("Users", "关联用户", 4, OnClientClick = "new Group().ShowUserWindow();", Icon = "fa fa-paragraph")]
    public partial class GroupIndexModel : BSSharpList
    {
        public GroupIndexModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging | ListFeature.RowNumber;
            IsUseOrgTreeLayout = true;
            this.ImportJavascript = "~/Areas/Platform/Scripts/Group.js";
        }
        /// <summary>
        /// 主键Id
        /// </summary>
        /// <value>主键Id</value>
        [Column(Text = "Id", Hidden = true)]
        public System.Guid Id { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [Column(Text = "编码", Width = 100)]
        public string Code { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [Column(Width = 150, Text = "标题", Locked = true), QueryOption(Option = QueryFeature.DefualtQuery)]
        public string Title { get; set; }
        /// <summary>
        /// 成员数
        /// </summary>
        [NumberColumn(Width = 100, Text = "成员数", Align = Alignment.Right, Format = "0"), QueryOption(Option = QueryFeature.NoneQuery)]
        public int MemberCount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column(Width = 300, Text = "备注")]
        public string Remark { get; set; }


    }

}